import { createSSRApp } from "vue";
import App from "./App.vue";
import store from "./store";
import CwCommon from "@/components/cwCommon.vue";
import customHeader from "@/components/customHeader.vue";
import statusLine from "@/components/statusLine.vue";

// 全局样式文件
import "@/static/font/font.css";
import "@/static/scss/index.scss";

export function createApp() {
  const app = createSSRApp(App);

  app.component("CwCommon", CwCommon);
  app.component("customHeader", customHeader);
  app.component("statusLine", statusLine);

  app.use(store);

  return {
    app,
  };
}
